<template>
    <div>
        <h1>Page One</h1>
        <router-link :to="{name:'pagetwo',params:{username:'PageOne--1'}}">页面跳转helloworld页面</router-link><br>
        <router-link :to="{path:'pagetwo',query:{username:'PageOne--2'}}">页面跳转helloworld页面</router-link><br>
        <router-link to="/pagethree/111">嵌套路由-params传递参数</router-link><br>
        <router-link to="/customPage">跳转到自定义界面 </router-link>
    </div>
</template>

<script>
export default {
  name: 'pageone',
  mounted () {
    console.log(this.$route.query.name)
  }
}
</script>

<style scoped>

</style>
